package com.fenqile.pop.trade.param;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.fenqile.pop.BusinessParameter;
import com.fenqile.pop.enums.ExpressReceiptStatus;
import com.fenqile.pop.enums.ExpressStatus;
import com.fenqile.pop.trade.ExpressFlowBaseNode;
import com.fenqile.pop.trade.result.TradeExpressPushResult;

/**
 * 卖家推送物流信息 {@value #API_METHOD}
 * 
 * @see TradeExpressPushResult
 * 
 * @author Coby [cobylin@live.com] 2017
 */
public class TradeExpressPushParameter extends BusinessParameter<TradeExpressPushResult> {
	public static final String API_METHOD = "fenqile.trade.express.push";
	
	/**
	 * 快递号
	 * 必须
	 */
	public String express_id;
	
	/**
	 * 物流当前状态
	 * 必须
	 */
	public ExpressStatus state;
	
	/**
	 * 签收状态
	 * 必须
	 */
	public ExpressReceiptStatus receipt;
	
	/**
	 * 详细物流
	 * 必须
	 */
	public List<ExpressFlowBaseNode> delivery_info;
	 
	
	@Override
	public String getApiMethod() {
		return API_METHOD;
	}
	
	public static class DeliveryInfo extends ArrayList<Map.Entry<LocalDateTime, String>> {
		private static final long serialVersionUID = -7969420345761516908L;
		
		
		
	}

}
